<?php
require "db.php";

function getUserByUsernameAndPassword($username, $password){
	$qr = "SELECT *
	FROM user
	WHERE Username = '$username' AND Password = '$password';";
	return mysql_query($qr);	
}

function getUserByUsername($username){
	$qr = "SELECT *
	FROM user
	WHERE Username = '$username';";
	return mysql_query($qr);	
}
?>